< previous page page_754 next page >

Page 754
Chapter 21: System Objects
Name three generic object types.
Answer: Form, Control, MDIForm, and Object.
Describe the function of the New keyword.
Answer: Creates a new instance of a class.
Which type of object is more efficient to usegeneric or specific?
Answer: Specific.
Why?
Answer: The reference is compiled; it does not need to be determined at runtime.
Chapter 22: Collections
What are the built-in collections in Visual Basic?
Answer: Forms, Controls, and Printers.
How might collections help you in developing your application?
Answer: They allow you to store groups of objects and iterate over them as a group.
List the properties of the Collection object.
Answer: Count.
What are the methods of the Collection object?
Answer: Add, Item, and Remove.
Why should you build a class that encapsulates the Collection object?
Answer: To avoid having different object types in the same collection.
Chapter 23: Tips and Tricks
Which event do you use to restrict user input in text boxes?
Answer: KeyPress.
Which function do you use to force uppercase letters?
Answer: UCase$().

 
< previous page page_754 next page >

If you like this book, buy it!